package com.funsport.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 活动分组成员实体
 *
 * @author Fun-Sport Team
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("event_group_members")
public class EventGroupMember implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 分组ID
     */
    private Long groupId;

    /**
     * 活动ID
     */
    private Long eventId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 报名ID
     */
    private Long signupId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}

